<?php 
header("content-type:text/html;charset=utf8");
$data = $_POST;
// print_r($data);
$names = $data['names'];
$pwd = $data['pwd'];
$realname = $data['realname'];
$money =$data['money'];
$pdo  = new PDO("mysql:host=127.0.0.1;dbname=07c","root","root");
$sql = "insert into yuan values('','$names','$pwd','$realname','$money')";
$res = $pdo->exec($sql);
if($res)
{
	echo "<script>alert('添加成功');location.href='show.php'</script>";
}
else
{
	echo "<script>alert('添加失败');location.href='insert.html'</script>";
}

 ?>